package com.jt.mapper;

import com.jt.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    List<User> findAll();

   User findUserById(int id);

    List<User> findUserByNA(User user);

    List<User> findUserByAge(HashMap<String, Integer> map);

    List<User> findUserByLike(String name);

    List<User> findListByIn(int[] array);

    void saveUser(User user);

    void deleteUser(User user);


    void updateUser(Map<String, String> map);


}

